package zj.xinxin.api.moudle.article.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author zhoujun
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xx_article")
@ApiModel(value = "ArticleEntity对象", description = "文章 ")
public class ArticleEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "博文ID")
    @TableId(value = "article_id", type = IdType.AUTO)
    private Long articleId;

    @ApiModelProperty(value = "发布日期")
    private LocalDateTime pushData;

    @ApiModelProperty(value = "发表用户")
    private String articleUser;

    @ApiModelProperty(value = "博文标题")
    private String title;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "浏览量")
    private Integer readCount;

    @ApiModelProperty(value = "是否置顶")
    private String topFlag;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "文章摘要")
    private String articleSummary;

    @ApiModelProperty(value = "文章markdown内容")
    private String contentMd;

    @ApiModelProperty(value = "文章html内容")
    private String contentHtml;

    @ApiModelProperty(value = "删除标识（0 正常。1 删除）")
    private Boolean delFlag;

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建日志")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
